package com.ts.api.module.match.plan.internal.qualification.model;

import lombok.Data;

/**
 *  资质验证错误信息类
 *
 *  @author Pan
 */
@Data
public class PlanQualificationError {

    /** 捕获异常 */
    private Exception exp;
    /** 错误原因 */
    private String errorMsg;

    /**
     *  构建异常信息
     *
     *  @param  exp
     *  @param  errorMsg
     *  @return PlanQualificationError
     */
    public static PlanQualificationError of(Exception exp, String errorMsg) {
        PlanQualificationError planQualificationError = new PlanQualificationError();
        planQualificationError.setExp(exp);
        planQualificationError.setErrorMsg(errorMsg);
        return planQualificationError;
    }
}
